package com.ryl.yomall.activity.client;

import com.ryl.yomall.model.activity.SeckillGoods;
import com.ryl.yomall.model.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;
import java.util.Map;

/**
 * @Date 19:55
 * @Author ryl
 */
@FeignClient(value = "service-activity")
public interface SecKillFeignClient {
    @GetMapping("/api/activity/list")
    List<SeckillGoods> list();

    @GetMapping("/api/activity/getSeckillGoods/{skuId}")
    SeckillGoods getSeckillGoods(@PathVariable Long skuId);
    /**
     * 秒杀确认订单
     * @return
     */
    @GetMapping("/api/activity/seckill/auth/trade")
    Result<Map<String, Object>> trade();

}
